package com.ec.rs.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import com.ec.rs.enums.BedStatus;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@TableName("beds")
public class Bed {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String roomNumber;
    private String bedNumber;
    private BedStatus status; // vacant, occupied
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long occupiedByUserId;
    private Double costPerMonth;
    private String notes;
}